java: support OpenJDK 10+
authorPino Toscano <ptoscano@redhat.com>
Fri, 4 May 2018 15:04:42 +0000 (17:04 +0200)
committerHilko Bengen <bengen@debian.org>
Sun, 6 May 2018 12:35:30 +0000 (13:35 +0100)
commita72854a0ec8b4ca63d7e2c64b50e6dcd8ed6de19
tree22291de14df65e2a2a8078aef81f4efe43be22fc
parent38d3afc5bd781fa64338a29c2f5c7f62ee356147
java: support OpenJDK 10+

Starting OpenJDK 10, the 'javah' utility is no more provided [1], and
its functionality is provided by 'javac' itself.  Hence, do not error
out on missing 'javah', and store whether it was found; in case it is
not, then:
1) assume 'javac' has the -h parameter to generate the C header, and
   make use of it
2) tell the buildsystem that com_redhat_et_libguestfs_GuestFS.h depends
   on the JAR, since the the header is generated at the step (1)

[1] https://bugs.java.com/view_bug.do?bug_id=JDK-8182758

Gbp-Pq: Name 0013-java-support-OpenJDK-10.patch
java/Makefile.am
m4/guestfs-java.m4